#coding=cp936
import os
import shutil

def create_empty_project(projectname):

    print os.getcwd()

    os.mkdir(projectname)
    os.chdir(projectname)
    os.mkdir('Bin')
    os.mkdir('Source')
    os.mkdir('Model')
    os.mkdir('Dcu')
    os.mkdir('Doc')
  
    os.chdir('Bin')
    os.mkdir(projectname)

    os.chdir(os.pardir)
    os.chdir('Dcu')
    os.mkdir(projectname)

    os.chdir(os.pardir)
    os.chdir('Doc')
    os.mkdir(projectname)    

    os.chdir(os.pardir)
    os.chdir('Model')
    os.mkdir('DataBase')
    os.mkdir('DataModel')

    os.chdir(os.pardir)
    os.chdir('Source')
    os.mkdir('Lib')
    os.mkdir(projectname)

    os.chdir('Lib')
    os.mkdir('Class')
    os.mkdir('Thrad')
    os.mkdir('Utils')

    os.chdir(os.pardir)
    os.chdir(projectname)
    os.mkdir('Form')

    os.chdir('Form')
    os.mkdir('Dialog')
    print os.getcwd
    
    

    
if __name__ == "__main__":
    
    #truepassword = r'kazarus0618'
    #temppassword = raw_input('enter password:')
    #print temppassword
    #if truepassword <> temppassword :
    #    sys.exit()
    #print r'successful'

    projectname = raw_input('enter projectname:')
    
    create_empty_project(projectname)  
